package com.Homework2;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;

public class Test08 {
    public static void main(String[] args) {
        String s = new Scanner(System.in).nextLine();
        HashMap<String, Integer> map = new HashMap<>();
        String[] s1 = s.split(" ");
        for (String s2 : s1) {
//            System.out.println(s2);
            if(!map.containsKey(s2)){
                map.put(s2,1);
            }else {
                Integer integer = map.get(s2);
                map.put(s2,++integer);
            }
        }
        Set<Map.Entry<String, Integer>> entries = map.entrySet();
        for (Map.Entry<String, Integer> entry : entries) {
            System.out.println(entry.getKey()+"--"+entry.getValue());
        }
    }
}
